package com.th.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 轮播图(走马灯)
 * </p>
 *
 * @author tuhang
 * @since 2022-05-16
 */
@TableName("sys_carousel")
@ApiModel(value = "SysCarousel对象", description = "轮播图(走马灯)")
public class SysCarousel implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("排序号")
    private Integer orderNum;

    @ApiModelProperty("封面(即图片)地址")
    private String cover;

    @ApiModelProperty("备注")
    private String description;

    @ApiModelProperty("跳转链接")
    private String linkUrl;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getLinkUrl() {
        return linkUrl;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl;
    }

    @Override
    public String toString() {
        return "SysCarousel{" +
                "id=" + id +
                ", name=" + name +
                ", orderNum=" + orderNum +
                ", cover=" + cover +
                ", description=" + description +
                ", linkUrl=" + linkUrl +
                "}";
    }
}
